import{ElMessage as e}from"element-plus";import{stringUtil as t,withInstallDirective as a}from"@fast-china/utils";const c=a({mounted(a,c){a.copyData=c.value,a.__handleClick__=async()=>{if(a.copyData)try{await t.copy(String(a.copyData)),e({type:"success",message:"复制成功"})}catch(c){throw e({type:"error",message:"复制失败"}),c}},a.addEventListener("click",a.__handleClick__)},updated(e,t){e.copyData=t.value},beforeUnmount(e){e.removeEventListener("click",e.__handleClick__)}},"copy");export{c as default,c as vCopy};
//# sourceMappingURL=index.mjs.map
